package com.aaa.service.impl;

import com.aaa.dao.BrandInfoDao;
import com.aaa.service.BrandInfoService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class BrandInfoServiceImpl implements BrandInfoService {
    @Resource
    private BrandInfoDao brandInfoDao;

    @Override
    @Cacheable(key = "'list'",value = "brandInfo")
    public List<Map> FindLAllBrandInfo() {
        return brandInfoDao.FindLAllBrandInfo();
    }
}
